<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- qtcolortriangle-2.2-commercial/src/qtcolortriangle.cpp -->
<head>
    <title>QtColorTriangle Class Reference</title>
    <style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }</style>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a></td>
<td align="right" valign="top" width="230"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></td></tr></table><h1 align="center">QtColorTriangle Class Reference</h1>
<p>The QtColorTriangle class provides a triangular color selection widget. <a href="#details">More...</a></p>
<pre>#include &lt;QtColorTriangle&gt;</pre><p>Inherits <a href="http://doc.trolltech.com/4.0/qwidget.html">QWidget</a>.</p>
<ul>
<li><a href="qtcolortriangle-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h3>Public Functions</h3>
<ul>
<li><div class="fn"/><b><a href="qtcolortriangle.html#QtColorTriangle">QtColorTriangle</a></b> ( QWidget * <i>parent</i> = 0 )</li>
<li><div class="fn"/><b><a href="qtcolortriangle.html#dtor.QtColorTriangle">~QtColorTriangle</a></b> ()</li>
<li><div class="fn"/>virtual int <b><a href="qtcolortriangle.html#heightForWidth">heightForWidth</a></b> ( int <i>w</i> ) const</li>
</ul>
<ul>
<li><div class="fn"/>247 public functions inherited from <a href="http://doc.trolltech.com/4.0/qwidget.html#public-functions">QWidget</a></li>
<li><div class="fn"/>36 public functions inherited from <a href="http://doc.trolltech.com/4.0/qobject.html#public-functions">QObject</a></li>
<li><div class="fn"/>18 public functions inherited from <a href="http://doc.trolltech.com/4.0/qpaintdevice.html#public-functions">QPaintDevice</a></li>
</ul>
<a name="signals"></a>
<h3>Signals</h3>
<ul>
<li><div class="fn"/>void <b><a href="qtcolortriangle.html#colorChanged">colorChanged</a></b> ( const QColor &amp; <i>color</i> )</li>
</ul>
<ul>
<li><div class="fn"/>1 signal inherited from <a href="http://doc.trolltech.com/4.0/qwidget.html#signals">QWidget</a></li>
<li><div class="fn"/>1 signal inherited from <a href="http://doc.trolltech.com/4.0/qobject.html#signals">QObject</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li><div class="fn"/>52 properties inherited from <a href="http://doc.trolltech.com/4.0/qwidget.html#properties">QWidget</a></li>
<li><div class="fn"/>1 property inherited from <a href="http://doc.trolltech.com/4.0/qobject.html#properties">QObject</a></li>
<li><div class="fn"/>18 public slots inherited from <a href="http://doc.trolltech.com/4.0/qwidget.html#public-slots">QWidget</a></li>
<li><div class="fn"/>1 public slot inherited from <a href="http://doc.trolltech.com/4.0/qobject.html#public-slots">QObject</a></li>
<li><div class="fn"/>5 static public members inherited from <a href="http://doc.trolltech.com/4.0/qwidget.html#static-public-members">QWidget</a></li>
<li><div class="fn"/>4 static public members inherited from <a href="http://doc.trolltech.com/4.0/qobject.html#static-public-members">QObject</a></li>
<li><div class="fn"/>13 static public members inherited from <a href="http://doc.trolltech.com/4.0/qpaintdevice.html#static-public-members">QPaintDevice</a></li>
<li><div class="fn"/>39 protected functions inherited from <a href="http://doc.trolltech.com/4.0/qwidget.html#protected-functions">QWidget</a></li>
<li><div class="fn"/>8 protected functions inherited from <a href="http://doc.trolltech.com/4.0/qobject.html#protected-functions">QObject</a></li>
<li><div class="fn"/>2 protected variables inherited from <a href="http://doc.trolltech.com/4.0/qobject.html#protected-variables">QObject</a></li>
<li><div class="fn"/>1 protected type inherited from <a href="http://doc.trolltech.com/4.0/qpaintdevice.html#protected-variables">QPaintDevice</a></li>
<li><div class="fn"/>1 static protected member inherited from <a href="http://doc.trolltech.com/4.0/qobject.html#static-protected-members">QObject</a></li>
</ul>
<a name="details"></a>
<hr />
<h2>Detailed Description</h2>
<p>The QtColorTriangle class provides a triangular color selection widget.</p>
<p>This widget uses the HSV color model, and is therefore useful for selecting colors by eye.</p>
<p>The triangle in the center of the widget is used for selecting saturation and value, and the surrounding circle is used for selecting hue.</p>
<p>Use setColor() and color() to set and get the current color.</p>
<p align="center"><img src="images/colortriangle.png" /></p><hr />
<h2>Member Function Documentation</h2>
<h3 class="fn"><a name="QtColorTriangle"></a>QtColorTriangle::QtColorTriangle ( <a href="http://doc.trolltech.com/4.0/qwidget.html">QWidget</a> * <i>parent</i> = 0 )</h3>
<p>Constructs a color triangle widget with the given <i>parent</i> and called <i>name</i>.</p>
<h3 class="fn"><a name="dtor.QtColorTriangle"></a>QtColorTriangle::~QtColorTriangle ()</h3>
<p>Destructs the color triangle.</p>
<h3 class="fn"><a name="colorChanged"></a>void QtColorTriangle::colorChanged ( const <a href="http://doc.trolltech.com/4.0/qcolor.html">QColor</a> &amp; <i>color</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>Whenever the color triangles color changes this signal is emitted with the new <i>color</i>.</p>
<h3 class="fn"><a name="heightForWidth"></a>int QtColorTriangle::heightForWidth ( int <i>w</i> ) const&nbsp;&nbsp;<tt> [virtual]</tt></h3>
<p>Forces the triangle widget to always be square. Returns the value <i>w</i>.</p>
<p>Reimplemented from <a href="http://doc.trolltech.com/4.0/qwidget.html#heightForWidth">QWidget</a>.</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="30%">Copyright &copy; 2005 <a href="trolltech.html">Trolltech</a></td>
<td width="40%" align="center"><a href="http://doc.trolltech.com/trademarks.html">Trademarks</a></td>
<td width="30%" align="right"><div align="right">Qt Solutions</div></td>
</tr></table></div></address></body>
</html>
